Ext.onReady(function() {
	var downForm = Ext.create('Ext.form.FormPanel',{
		id:'downForm',
		title:'down-form',
		renderTo:Ext.getBody(),
		items:[],
		buttons:[{
			text:'pressure excel download',
			handler:function() {
				window.open("http://localhost:8080/HealthManager2.1/fileDownloadAction!download?fileName=pressure.xlsx");
				
//				Ext.Ajax.request({
//					method:'POST',
//					url:'fileDownloadAction!download',
//					params:{
//						fileName:"pressure.xlsx"
//					},
//					success:function() {
//						Ext.Msg.alert('','download success!');
//					},
//					failure:function() {
//						Ext.Msg.alert('','download failed!');
//					}
//				})//end of request
			}//end of handler's function
		},{
			text:'sugar excel download',
			handler:function() {
				window.open("http://localhost:8080/HealthManager2.1/fileDownloadAction!download?fileName=sugar.xlsx");
			}//end of function handler
		}]
	
	});


});//end of Ext.onReady